package com.mocha.bean;

import java.util.Date;

public class Employee {

    private Integer id;
    
    private String lastName;
    
    private String email;
    
    private String gender;
    
    private Date birth;
    
    private Department department;

    /**
     * id.
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id.
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * lastName.
     * @return the lastName
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * lastName.
     * @param lastName the lastName to set
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /**
     * email.
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * email.
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * gender.
     * @return the gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * gender.
     * @param gender the gender to set
     */
    public void setGender(String gender) {
        this.gender = gender;
    }


    @Override
    public String toString() {
        return "Employee [id=" + id + ", lastName=" + lastName + ", email=" + email + ", gender=" + gender + ", birth="
                + birth + ", department=" + department + "]";
    }

    public Employee(Integer id, String lastName, String email, String gender,Department department) {
        this.id = id;
        this.lastName = lastName;
        this.email = email;
        this.gender = gender;
        this.department = department;
    }

    public Employee() {
    }

    /**
     * department.
     * @return the department
     */
    public Department getDepartment() {
        return department;
    }

    /**
     * department.
     * @param department the department to set
     */
    public void setDepartment(Department department) {
        this.department = department;
    }

    /**
     * birth.
     * @return the birth
     */
    public Date getBirth() {
        return birth;
    }

    /**
     * birth.
     * @param birth the birth to set
     */
    public void setBirth(Date birth) {
        this.birth = birth;
    }
    
    
}
